﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace eduscrum.Models
{
    public class Project
    {
        public int ProjectID { get; set; }
        public string Name { get; set; }
        [DataType(DataType.Date)]
        public DateTime StartDate { get; set; }
        [DataType(DataType.Date)]
        public DateTime EndDate { get; set; }

        public bool Locked { get; set; }
        public int PhaseCount { get; set; }
        public int SprintDuration { get; set; } // Whole days

        //Foreign key
        public virtual List<UserStory> Backlog { get; set; }
        //Foreign key
        public virtual List<Phase> Phases { get; set; }
        //Foreign key
        public virtual List<Sprint> Sprints { get; set; }
    }
}